package com.qkst.website.web.mapper;

import com.qkst.website.web.bean.CommentBean;
import com.qkst.website.web.entity.CommentRelAccessoryKey;

public interface CommentRelAccessoryMapper {
    /**
     * 根据主键删除数据库的记录
     *
     * @param key
     */
    int deleteByPrimaryKey(CommentRelAccessoryKey key);

    /**
     * 插入数据库记录
     *
     * @param record
     */
    int insert(CommentRelAccessoryKey record);

    /**
     * 插入数据库记录
     *
     * @param record
     */
    int insertSelective(CommentRelAccessoryKey record);

	/**
	 * 批量插入评论与附件关系
	 * @param comment
	 * @return
	 */
	int batchInsert(CommentBean comment);

	/**
	 * 删除评论相关的附件记录
	 * @param comment
	 */
	void deleteByComment(CommentBean comment);
}